package fivm.cross.platform.steamobj.appcase.params;


import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import fivm.cross.platform.ficommon.distinguish.GsonSimpleSerializable;

public class FiServerWifiInfo  extends GsonSimpleSerializable {

	public FiServerWifiInfo() {}
	/**
	 * 需定义需要修改的参数列表
	 * */
	public final static String RESET_BSSID			  		="BSSID";
	public final static String RESET_HiddenSSID		  	="HiddenSSID";
	public final static String RESET_InetAddress		  	="InetAddress";
	public final static String RESET_IpV6Address	  		="IpV6Address";
	public final static String RESET_LinkSpeed		  		="LinkSpeed";
	public final static String RESET_MacAddress		  	="MAC";
	public final static String RESET_MeteredHint	  		="MeteredHint";
	public final static String RESET_NetworkId		  		="NetworkId";
	public final static String RESET_Rssi			  		="RSSI";
	public final static String RESET_SupplicantState  	="SupplicantState";
	public final static String RESET_Ssid		  			="SSID";
	@Expose @SerializedName("BSSID")
	private String BSSID;
	@Expose @SerializedName("MAC")
	private String MAC;
	@Expose @SerializedName("SSID")
	private String SSID;

	/**
	 * 生成参数
	 * */
	public static String genMac(){
		char[] char1 = "abcdef".toCharArray();
		char[] char2 = "0123456789".toCharArray();
		StringBuffer mBuffer = new StringBuffer();
		for (int i = 0; i < 6; i++) {
			int t = new java.util.Random().nextInt(char1.length);
			int y = new java.util.Random().nextInt(char2.length);
			int key = new java.util.Random().nextInt(2);
			if (key ==0) {
				mBuffer.append(char2[y]).append(char1[t]);
			}else {
				mBuffer.append(char1[t]).append(char2[y]);
			}

			if (i!=5) {
				mBuffer.append(":");
			}
		}
		return mBuffer.toString();
	}
	public  static String genSsid(){
		return String.valueOf(Math.random()*1000000);
	}

	public String getBSSID() {
		return BSSID;
	}

	public void setBSSID(String BSSID) {
		this.BSSID = BSSID;
	}

	public String getMAC() {
		return MAC;
	}

	public void setMAC(String MAC) {
		this.MAC = MAC;
	}

	public String getSSID() {
		return SSID;
	}

	public void setSSID(String SSID) {
		this.SSID = SSID;
	}
}
